import KBEngine
import KBEDebug as log


class Account(KBEngine.Entity):
    """
    当作客户端来写逻辑
    """

    def __init__(self):
        KBEngine.Entity.__init__(self)
        log.DEBUG_MSG("bot Account::__init__:%s." % (self.__dict__))

        self.base.reqAvatarList()

    def onReqAvatarList(self, infos):
        log.DEBUG_MSG("bot onReqAvatarList")
        self.base.reqCreateAvatar(1, f'robot_{self.id}')

    def pushAccountId(self, arg):
        pass

    def onPushRegisterInfo(self, arg1, arg2):
        pass

    def cantLogin(self, arg):
        pass
